package com.atguigu.springcloud.order.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author lenovo
 * @version 1.0
 * @date 2020/11/17 14:02
 */
@Component
@FeignClient(value = "CLOUD-PAYMENT-HYSTRIX-SERVICE")
public interface PaymentHystrixService {

    @GetMapping("payment/hystrix/ok/{id}")
    public String getInfoOk(@PathVariable("id") Long id);


    @GetMapping("payment/hystrix/timeout/{id}")
    public String getInfoTimeout(@PathVariable("id") Long id);
}
